package com.luo.chengrui.labs.datapermission.service;

import com.luo.chengrui.datapermission.annotation.DataPermission;
import com.luo.chengrui.labs.datapermission.dataobject.UserDO;
import com.luo.chengrui.labs.datapermission.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * @author
 * @version 1.0.0
 * @description
 * @createTime 2024/01/02
 */
@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    @DataPermission
    public List<UserDO> selectByIds2(Collection<Integer> ids) {
        return userMapper.selectByIds2(ids);
    }
}
